package com.ruoyi.ihome.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子管理对象 ih_topic
 *
 * @author me
 * @date 2024-08-13
 */
public class IhTopic extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 帖子id
     */
    @Excel(name = "帖子id")
    private Long id;

    /**
     * 帖子标题
     */
    @Excel(name = "帖子标题")
    private String title;
    private Long collectId;
    /**
     * 帖子内容
     */
    @Excel(name = "帖子内容")
    private String content;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /**
     * 小区名
     */
    @Excel(name = "小区名")
    private String communityName;

    /**
     * 房间id
     */
    private Long houseId;
    /**
     * 帖子类型(0求租，1合租
     */
    @Excel(name = "帖子类型(0求租，1合租")
    private Long topicType;

    /**
     * 审核状态(0审核中，1未审核，2已审核
     */
    @Excel(name = "审核状态(0审核中，1未审核，2已审核")
    private Long status;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 发帖用户
     */
    private SysUser user;
    /**
     * 房间信息
     */
    private IhHome ihome;
    /**
     * 帖子评论
     */
    private List<IhTopicComment> ihTopicComment;
    /**
     * 房间设施
     */
    private List<Facility> facility;

    private List<IhTopicTag> ihTopicTags;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setTopicType(Long topicType) {
        this.topicType = topicType;
    }

    public Long getTopicType() {
        return topicType;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public IhHome getIhome() {
        return ihome;
    }

    public void setIhome(IhHome ihome) {
        this.ihome = ihome;
    }

    public List<IhTopicComment> getIhTopicComment() {
        return ihTopicComment;
    }

    public void setIhTopicComment(List<IhTopicComment> ihTopicComment) {
        this.ihTopicComment = ihTopicComment;
    }

    public List<Facility> getFacility() {
        return facility;
    }

    public void setFacility(List<Facility> facility) {
        this.facility = facility;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<IhTopicTag> getIhTopicTags() {
        return ihTopicTags;
    }

    public void setIhTopicTags(List<IhTopicTag> ihTopicTags) {
        this.ihTopicTags = ihTopicTags;
    }

    public Long getCollectId() {
        return collectId;
    }

    public void setCollectId(Long collectId) {
        this.collectId = collectId;
    }

    @Override
    public String toString() {
        return "IhTopic{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", collect=" + collectId +
                ", content='" + content + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", communityName='" + communityName + '\'' +
                ", houseId=" + houseId +
                ", topicType=" + topicType +
                ", status=" + status +
                ", userId=" + userId +
                ", user=" + user +
                ", ihome=" + ihome +
                ", ihTopicComment=" + ihTopicComment +
                ", facility=" + facility +
                ", ihTopicTags=" + ihTopicTags +
                "} " + super.toString();
    }
}
